package com.aerozhonghuan.oknet2;

import android.util.Log;

/**
 * OknetLogUtil
 * Created by zhangyunfei on 16/3/15.
 */
class OknetLogUtil {
    private static final String TAG = "oknet";

    public static void i(String msg) {
        if (!OknetConfig.DEBUG) return;
        if (OknetConfig.getLogInterceptor() != null) {
            OknetConfig.getLogInterceptor().i(TAG, msg);
        }
    }

    public static void e(String msg) {
        if (!OknetConfig.DEBUG) return;
        if (OknetConfig.getLogInterceptor() != null) {
            OknetConfig.getLogInterceptor().e(TAG, msg);
        }
    }
}
